]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionSystem: Fix opening Extensions app from notification
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 26 Jan 2021 16:12:04 +0000 (17:12 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 26 Jan 2021 16:12:04 +0000 (17:12 +0100)
Launching the app is implemented by the source's open() method, but
only external notifications are hooked up to call into the source
when no default action was provided.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1595>

js/ui/extensionSystem.js

index 41ef98d70ec302aaf02e8866eb8a41fbc400fd45..6b624fca09a1456ecd5cdc5daa6e237300e8dcf4 100644 (file)
@@ -252,6 +252,8 @@ var ExtensionManager = class {
             let notification = new MessageTray.Notification(source,
                 _('Extension Updates Available'),
                 _('Extension updates are ready to be installed.'));
+            notification.connect('activated',
+                () => source.open());
             source.showNotification(notification);
         }
     }